//
//  LSZRequestData.m
//  JKFuYinProject
//
//  Created by 九酷 on 2017/9/18.
//  Copyright © 2017年 LC. All rights reserved.
//

#import "LSZRequestData.h"

@implementation LSZRequestData
#pragma mark - 发布我要祷告的信息
+(void)initWithReleaseToPray:(NSString *)people :(NSString *)category :(NSString *)sex :(NSString *)nickname :(NSString *)content :(NSString *)type :(HTTPSData)block
{
    NSString * uid  = [NSString stringWithFormat:@"%@",[[NSUserDefaults standardUserDefaults]objectForKey:@"uid"]];
    NSMutableDictionary * dic = [[NSMutableDictionary alloc]initWithObjectsAndKeys:type,@"type",uid,@"uid",people,@"people",category,@"category",sex,@"sex",nickname,@"nickname",content,@"content",nil];
    [kNetworkTool POSTWithUrlStringNew:kBasePostFuyin parameters:dic success:^(NSDictionary * dic) {
        NSString * status = nil;
        if ([[dic objectForKey:@"status"] isKindOfClass:[NSNumber class]]) {
            status = [[dic objectForKey:@"status"] stringValue];
        }
        if ([[dic objectForKey:@"status"] isKindOfClass:[NSString class]]) {
            status = [dic objectForKey:@"status"];
        }
        if ([status isEqualToString:@"200"]) {
            block(YES,@"ok",dic);
        }
       else if ([status isEqualToString:@"400"]) {
            block(NO,@"您已经发布过,请稍等片刻!",dic);
        }else{
            NSString * message = [NSString stringWithFormat:@"%@",dic[@"message"]];
            block(NO,message,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 修改昵称
+(void)initWithModifyNickname:(NSString *)strName :(HTTPSData)block
{
    NSDictionary * dic =  [[NSDictionary alloc]initWithObjectsAndKeys:strName,@"username", nil];
    NSString * url= [NSString stringWithFormat:@"%@/user/set_username",http_toutiao];
    [kNetworkTool POSTFuYinWithUrlString:url input:dic success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        if ([status isEqualToString:@"1"]) {
            block(YES,@"ok",dic);
        }
        else{
            NSString * message = [NSString stringWithFormat:@"%@",dic[@"msg"]];
            block(NO,message,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 修改头像
+(void)initWithModifyThePicture:(UIImage *)file filePath:(NSString *)filePath :(HTTPSData)block
{
    NSData *imageData = UIImageJPEGRepresentation(file, 0.15);
    NSString * url= [NSString stringWithFormat:@"%@/user/set_avatar",http_toutiao];
    NSDictionary * dic = [[NSDictionary alloc]init];
    [[NetworkTool sharedInstance] uploadFuYinWithUrlString:url input:dic dataImage:imageData filePath:filePath success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        if ([status isEqualToString:@"1"]) {
            block(YES,@"ok",dic);
        }
        else{
            NSString * message = [NSString stringWithFormat:@"%@",dic[@"message"]];
            block(NO,message,nil);
        }
    } failure:^(NSError * err) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 修改笔记
+(void)initmodificationNotes:(NSString *)type parentId:(NSString *)parentId content:(NSString *)content :(HTTPSData)block
{
    NSString * uid  = [NSString stringWithFormat:@"%@",[[NSUserDefaults standardUserDefaults]objectForKey:@"uid"]];
    NSDictionary * dic = @{@"type":@"notesUpdate", @"uid":uid, @"parentId":parentId, @"content":content};
    [kNetworkTool POSTWithUrlStringNew:kBasePostFuyin parameters:dic success:^(NSDictionary * diction) {
        NSString * status = [[NSString alloc]init];
        if ([[diction objectForKey:@"status"] isKindOfClass:[NSNumber class]]) {
            status = [[diction objectForKey:@"status"] stringValue];
        }
        if ([[diction objectForKey:@"status"] isKindOfClass:[NSString class]]) {
            status = [diction objectForKey:@"status"];
        }
        if ([status isEqualToString:@"200"]) {
            block(YES,@"笔记修改成功",dic);
        }
        else if ([status isEqualToString:@"400"]) {
            block(NO,@"笔记修改失败",dic);
        }
        else{
            NSString * message = [NSString stringWithFormat:@"%@",dic[@"message"]];
            block(NO,message,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark  - 添加笔记
+(void)initAddNotes :(NSString *)title relation:(NSString *)relation content:(NSString *)content :(HTTPSData)block;
{
    NSString * uid  = [NSString stringWithFormat:@"%@",[[NSUserDefaults standardUserDefaults]objectForKey:@"uid"]];
     NSDictionary * dic = @{@"type":@"notesAdd", @"uid":uid, @"title":title, @"relation":relation, @"content":content};
    [kNetworkTool POSTWithUrlStringNew:kBasePostFuyin parameters:dic success:^(NSDictionary * diction) {
        NSString * status = [[NSString alloc]init];
        if ([[diction objectForKey:@"status"] isKindOfClass:[NSNumber class]]) {
            status = [[diction objectForKey:@"status"] stringValue];
        }
        if ([[diction objectForKey:@"status"] isKindOfClass:[NSString class]]) {
            status = [diction objectForKey:@"status"];
        }
        if ([status isEqualToString:@"200"]) {
            block(YES,@"笔记修改成功",dic);
        }
        else  if ([status isEqualToString:@"400"]) {
            block(NO,@"笔记修改失败",dic);
        }
        else{
            NSString * message = [NSString stringWithFormat:@"%@",dic[@"message"]];
            block(NO,message,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark -删除笔记
+(void)initDeleteNotes:(NSString *)resource_id :(HTTPSData)block
{
    NSString * uid  = [NSString stringWithFormat:@"%@",[[NSUserDefaults standardUserDefaults]objectForKey:@"uid"]];
    NSDictionary * dic = @{@"type":@"notesDel", @"uid":uid, @"parentId":resource_id};
    [HttpTool postWithURL:kBasePostFuyin params:dic success:^(id json) {
        NSString * status = [NSString stringWithFormat:@"%@",json[@"status"]];
        if ([status isEqualToString:@"200"]) {
            block(YES,@"删除成功!",dic);
        }else{
            NSString * msg = [NSString stringWithFormat:@"%@",dic[@"message"]];
            block(NO,msg,dic);
        }
        // 局部刷新单元格
    } failure:^(NSError *error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 删除笔记收藏
+(void)deleteNoteCollection:(NSString *)parentId :(HTTPSData)block
{
    NSString * uid  = [NSString stringWithFormat:@"%@",[[NSUserDefaults standardUserDefaults]objectForKey:@"uid"]];
    NSDictionary * dic = @{@"type":@"collectDel", @"uid":uid, @"parentId":parentId};
    [HttpTool postWithURL:kBasePostFuyin params:dic success:^(id json) {
        NSString * status = [NSString stringWithFormat:@"%@",json[@"status"]];
        if ([status isEqualToString:@"200"]) {
            block(YES,@"删除成功!",dic);
        }else{
            NSString * msg = [NSString stringWithFormat:@"%@",dic[@"message"]];
            block(NO,msg,dic);
        }
        // 局部刷新单元格
    } failure:^(NSError *error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 修改性别和区域
+(void)ChangeGenderAndArea:(NSString *)input inputParameter:(NSString *)inputParameter :(HTTPSData)block
{
    NSDictionary * dic = @{input:inputParameter};
     NSString * url= [NSString stringWithFormat:@"%@/user/set_info",http_toutiao];
    [kNetworkTool POSTFuYinWithUrlString:url input:dic success:^(NSDictionary * dic) {
        //uid
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        NSString * msg = [NSString stringWithFormat:@"%@",dic[@"msg"]];
        if ([status isEqualToString:@"1"]) {
            block(YES,msg,dic);
        }else{
            block(NO,msg,dic);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 送祝福
+(void)initWithSendBlessings:(NSString *)type :(NSString *)parentId :(HTTPSData)block
{
    NSString * uid  = [NSString stringWithFormat:@"%@",[[NSUserDefaults standardUserDefaults]objectForKey:@"uid"]];
    NSString * State = [[NSUserDefaults standardUserDefaults]objectForKey:@"headerPhoto"];
    NSString * username = [[NSUserDefaults standardUserDefaults]objectForKey:@"username"];
    
    NSArray *array = [State componentsSeparatedByString:@"?"]; //从字符A中分隔成2个元素的数组
    NSDictionary * dic = [[NSDictionary alloc]initWithObjectsAndKeys:uid,@"uid",username,@"username",array[0],@"avatar",type,@"type",parentId,@"parentId", nil];
     [kNetworkTool POSTWithUrlStringNew:kBasePostFuyin parameters:dic success:^(NSDictionary * dic) {
        //uid
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        if ([status isEqualToString:@"200"]) {
            block(YES,@"已送祝福!",dic);
        }else{
            NSString * message = [NSString stringWithFormat:@"%@",dic[@"message"]];
            block(NO,message,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 发布祷告
+(void)initWithBiblePrayer:(NSString *)type toname:(NSString *)toname title:(NSString *)title classify:(NSString *)classify sex:(NSString *)sex nickname:(NSString *)nickname content:(NSString *)content :(UIImage *)file filePath:(NSString *)filePath :(HTTPSData)block
{
    if (file.size.width/16*9 > file.size.height) {
        CGSize size = CGSizeMake(file.size.height*16/9, file.size.height);
        UIGraphicsBeginImageContext(size);
        [file drawInRect:CGRectMake(0, 0, size.width, size.height)];
        file = UIGraphicsGetImageFromCurrentImageContext();
        UIGraphicsEndImageContext();
    }
    if (file.size.width/16*9 < file.size.height) {
        CGSize size = CGSizeMake(file.size.width,file.size.width/16*9);
        UIGraphicsBeginImageContext(size);
        [file drawInRect:CGRectMake(0, 0, size.width, size.height)];
        file = UIGraphicsGetImageFromCurrentImageContext();
        UIGraphicsEndImageContext();
    }
    NSLog(@"%f>>>%f",file.size.width,file.size.height);
    NSData *imageData = UIImageJPEGRepresentation(file, 0.3);
//    NSData *imageData = UIImageJPEGRepresentation(file, 0.5);
    //    NSData * imageData = [[NSData alloc]init];
    NSString * url= [NSString stringWithFormat:@"%@",http_shengjing];
    //    NSString * uid  = [[NSUserDefaults standardUserDefaults]objectForKey:@"uid"];
    NSDictionary * dic = [[NSDictionary alloc]initWithObjectsAndKeys:@"submit_pray_or_witness",@"interface",type,@"type",toname,@"toname",title,@"title",classify,@"classify",sex,@"sex",nickname,@"nickname",content,@"content", nil];
    [[NetworkTool sharedInstance] uploadFuYinWithUrlString:url input:dic dataImage:imageData filePath:filePath success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        if ([status isEqualToString:@"1"]) {
            block(YES,@"ok",dic);
        }
        else{
            NSString * message = [NSString stringWithFormat:@"%@",dic[@"message"]];
            block(NO,message,nil);
        }
    } failure:^(NSError * err) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 用户签到 签到1  早祷2  晚祷3
+(void)userSignIn:(NSString *)string is_open:(NSString *)is_open type:(NSString *)type :(HTTPSData)block
{
    NSDictionary * diction = [[NSDictionary alloc]init];
    if ([type isEqualToString:@"1"]) {
        diction = [[NSDictionary alloc]initWithObjectsAndKeys:type,@"type", nil];
    }else{
        diction = [[NSDictionary alloc]initWithObjectsAndKeys:string,@"content",is_open,@"is_open",type,@"type", nil];
    }
    NSString * url = [NSString stringWithFormat:@"%@/users/signin",http_zongSJUrl];
    [kNetworkTool POSTFuYinWithUrlString:url input:diction success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        NSString * msg = [NSString stringWithFormat:@"%@",dic[@"msg"]];
        if ([status isEqualToString:@"1"]) {
            block(YES,msg,dic);
        }else{
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 用户签到点赞
+(void)theUserChecksToThumbUp:(NSString *)id_goods :(HTTPSData)block
{
    NSDictionary * diction = [[NSDictionary alloc]initWithObjectsAndKeys:id_goods,@"id", nil];
    NSString * url = [NSString stringWithFormat:@"%@/users/sign_fav",http_zongSJUrl];
    [kNetworkTool POSTFuYinWithUrlString:url input:diction success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        NSString * msg = [NSString stringWithFormat:@"%@",dic[@"msg"]];
        if ([status isEqualToString:@"1"]) {
            block(YES,msg,dic);
        }else{
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 获取文章的收藏
+(void)getTheArticleCollection:(NSString *)page type:(NSString *)type :(HTTPSData)block
{
    NSString * uid  = [NSString stringWithFormat:@"%@",[[NSUserDefaults standardUserDefaults]objectForKey:@"uid"]];
    NSDictionary * diction = @{@"interface":@"get_notes_list",@"type":type, @"usercode":uid, @"page":[NSString stringWithFormat:@"%@", page], @"size":count_num30};
    NSString * url = [NSString stringWithFormat:@"%@/ApiHandler",http_zongSJUrl];
    [kNetworkTool POSTFuYinWithUrlString:url input:diction success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        if ([status isEqualToString:@"1"]) {
            block(YES,@"ok",dic);
        }else{
            NSString * msg = [NSString stringWithFormat:@"%@",dic[@"msg"]];
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 增加祷告浏览量
+(void)AddIncreasePrayerTraffic:(NSString *)id_id :(HTTPSData)block
{
    NSDictionary * diction = [[NSDictionary alloc]initWithObjectsAndKeys:@"pray_view",@"interface",id_id,@"id",  nil];
    NSString * url = [NSString stringWithFormat:@"%@",http_shengjing];
    [kNetworkTool POSTFuYinWithUrlString:url input:diction success:^(NSDictionary * dic) {
        //        NSLog(@"%@",dic);
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        if ([status isEqualToString:@"1"]) {
            block(YES,@"ok",dic);
        }else{
            NSString * msg = [NSString stringWithFormat:@"%@",dic[@"msg"]];
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 用户对评论点赞
+(void)UsersCommentOnThumbUp:(NSString *)resource_id comment_id:(NSString *)comment_id :(HTTPSData)block
{
    NSString * uid  = [NSString stringWithFormat:@"%@",[[NSUserDefaults standardUserDefaults]objectForKey:@"uid"]];

    NSDictionary * diction = [[NSDictionary alloc]initWithObjectsAndKeys:@"submit_comment_praise",@"interface",resource_id,@"resource_id",comment_id,@"comment_id",uid,@"usercode", nil];
    NSString * url = [NSString stringWithFormat:@"%@",http_shengjing];
    [kNetworkTool POSTFuYinWithUrlString:url input:diction success:^(NSDictionary * dic) {
        NSLog(@"%@",dic);
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        if ([status isEqualToString:@"1"]) {
            block(YES,@"ok",dic);
        }else{
            NSString * msg = [NSString stringWithFormat:@"%@",dic[@"msg"]];
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 用户对资源点赞    type,资源类型     1,音频 2，视频 3，文章，6祷告，7见证
+(void)UserVersusResourceThumbUp:(NSString *)resource_id type:(NSString *)type :(HTTPSData)block
{
    NSString * uid  = [NSString stringWithFormat:@"%@",[[NSUserDefaults standardUserDefaults]objectForKey:@"uid"]];
    NSDictionary * diction = [[NSDictionary alloc]initWithObjectsAndKeys:@"submit_resource_praise",@"interface",resource_id,@"resource_id",type,@"type",uid,@"usercode", nil];
    NSString * url = [NSString stringWithFormat:@"%@",http_shengjing];
    [kNetworkTool POSTFuYinWithUrlString:url input:diction success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        if ([status isEqualToString:@"1"]) {
            block(YES,@"ok",dic);
        }else{
            NSString * msg = [NSString stringWithFormat:@"%@",dic[@"msg"]];
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 用户对回复点赞 submit_reply_praise comment_id某条评论的ID  reply_id回复ID
+(void)UsersRespondRoRhumbRp:(NSString *)resource_id comment_id:(NSString *)comment_id reply_id:(NSString *)reply_id :(HTTPSData)block
{
    NSString * uid  = [NSString stringWithFormat:@"%@",[[NSUserDefaults standardUserDefaults]objectForKey:@"uid"]];
    NSDictionary * diction = [[NSDictionary alloc]initWithObjectsAndKeys:@"submit_reply_praise",@"interface",resource_id,@"resource_id",comment_id,@"comment_id",reply_id,@"reply_id",uid,@"usercode", nil];
    NSString * url = [NSString stringWithFormat:@"%@",http_shengjing];
    [kNetworkTool POSTFuYinWithUrlString:url input:diction success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        if ([status isEqualToString:@"1"]) {
            block(YES,@"ok",dic);
        }else{
            NSString * msg = [NSString stringWithFormat:@"%@",dic[@"msg"]];
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark -   用户对资源评论
+(void)UserCommentsOnResources:(NSString *)resource_id content:(NSString *)content type:(NSString *)type :(HTTPSData)block
{
    NSString * uid  = [NSString stringWithFormat:@"%@",[[NSUserDefaults standardUserDefaults]objectForKey:@"uid"]];
    NSDictionary * diction = [[NSDictionary alloc]initWithObjectsAndKeys:@"submit_resource_comment ",@"interface",resource_id,@"resource_id",type,@"type",uid,@"usercode",content,@"content", nil];
    NSString * url = [NSString stringWithFormat:@"%@",http_shengjing];
    [kNetworkTool POSTFuYinWithUrlString:url input:diction success:^(NSDictionary * dic) {
        NSLog(@"%@",dic);
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        if ([status isEqualToString:@"1"]) {
            block(YES,@"ok",dic);
        }else{
            NSString * msg = [NSString stringWithFormat:@"%@",dic[@"msg"]];
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 用户对评论进行回复
+(void)UsersRespondToComments:(NSString *)resource_id content:(NSString *)content comment_id:(NSString *)comment_id :(HTTPSData)block
{
    NSString * uid  = [NSString stringWithFormat:@"%@",[[NSUserDefaults standardUserDefaults]objectForKey:@"uid"]];
    NSDictionary * diction = [[NSDictionary alloc]initWithObjectsAndKeys:@"submit_comment_reply ",@"interface",resource_id,@"resource_id",comment_id,@"comment_id",uid,@"usercode",content,@"content", nil];
    NSString * url = [NSString stringWithFormat:@"%@",http_shengjing];
    [kNetworkTool POSTFuYinWithUrlString:url input:diction success:^(NSDictionary * dic) {
        NSLog(@"%@",dic);
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        if ([status isEqualToString:@"1"]) {
            block(YES,@"ok",dic);
        }else{
            NSString * msg = [NSString stringWithFormat:@"%@",dic[@"msg"]];
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 输入邀请码
+(void)enterTheInvitationCode:(NSString *)incode :(HTTPSData)block
{
    NSDictionary * diction = [[NSDictionary alloc]initWithObjectsAndKeys:incode,@"incode", nil];
    NSString * url = [NSString stringWithFormat:@"%@/user/set_hid",http_toutiao];
    [kNetworkTool POSTFuYinWithUrlString:url input:diction success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        NSString * msg = [NSString stringWithFormat:@"%@",dic[@"msg"]];
        if ([status isEqualToString:@"1"]) {
            block(YES,msg,dic);
        }else{
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark- 支付宝或者微信提现 withdraw2今日圣经   withdraw九酷福音
+(void)alipayOrWeChatWithdrawal:(NSString *)amount type:(NSString *)type pay_to:(NSString *)pay_to pay_name:(NSString *)pay_name :(HTTPSData)block
{
    NSDictionary * dic = @{@"amount":amount, @"type":type, @"pay_to":pay_to, @"pay_name":pay_name};
    NSString * url = [NSString stringWithFormat:@"%@/user/withdraw2",http_toutiao];
    [kNetworkTool POSTFuYinWithUrlString:url input:dic success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        NSString * msg = [NSString stringWithFormat:@"%@",dic[@"msg"]];
        if ([status isEqualToString:@"1"]) {
            block(YES,msg,dic);
        }else{
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 获取收徒的图片
+(void)getPictureOfTheRecipient:(HTTPSData)block
{
    NSDictionary * diction = [[NSDictionary alloc]initWithObjectsAndKeys:@"2",@"appname", nil];
    NSString * url = [NSString stringWithFormat:@"%@/extension/create_img",http_toutiao];
    [kNetworkTool POSTFuYinWithUrlString:url input:diction success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        NSString * msg = [NSString stringWithFormat:@"%@",dic[@"msg"]];
        if ([status isEqualToString:@"1"]) {
            block(YES,msg,dic);
        }else{
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 意见反馈
+(void)userFeedback:(NSString *)type gnote:(NSString *)gnote phone:(NSString *)phone :(HTTPSData)block
{
    NSDictionary * dic = @{@"type":type, @"tag":@"2", @"gnote":gnote, @"phone":phone,@"usercode":[_UserM usercode]};
    NSString * url = [NSString stringWithFormat:@"%@/ApiHandler/suggest",http_zongSJUrl];
    [kNetworkTool POSTFuYinWithUrlString:url input:dic success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        if ([status isEqualToString:@"1"]) {
            block(YES,@"ok",dic);
        }else{
            NSString * msg = [NSString stringWithFormat:@"%@",dic[@"msg"]];
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 收藏夹的添加
+(void)TheAdditionOfFavorites:(NSString *)type name:(NSString *)name :(HTTPSData)block
{
    NSDictionary * diction = [[NSDictionary alloc]initWithObjectsAndKeys:type,@"type",name,@"name", nil];
    NSString * url = [NSString stringWithFormat:@"%@/Music/collect_cat_add",http_zongSJUrl];
    [kNetworkTool POSTFuYinWithUrlString:url input:diction success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        NSString * msg = [NSString stringWithFormat:@"%@",dic[@"msg"]];
        if ([status isEqualToString:@"1"]) {
            block(YES,msg,dic);
        }else{
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 收藏夹删除
+(void)favoritesDeletion:(NSString *)id_id :(HTTPSData)block
{
    NSDictionary * diction = [[NSDictionary alloc]initWithObjectsAndKeys:id_id,@"id",nil];
    NSString * url = [NSString stringWithFormat:@"%@/Music/collect_cat_del",http_zongSJUrl];
    [kNetworkTool POSTFuYinWithUrlString:url input:diction success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        NSString * msg = [NSString stringWithFormat:@"%@",dic[@"msg"]];
        if ([status isEqualToString:@"1"]) {
            block(YES,msg,dic);
        }else{
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 歌曲收藏
+(void)getSongCollection:(NSString *)cat :(NSString *)resource :(HTTPSData)block
{
    NSDictionary * diction = [[NSDictionary alloc]initWithObjectsAndKeys:cat,@"cat",@"3",@"type",resource,@"resource", nil];
    NSString * url = [NSString stringWithFormat:@"%@/Music/collect_add",http_zongSJUrl];
    [kNetworkTool POSTFuYinWithUrlString:url input:diction success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        NSString * msg = [NSString stringWithFormat:@"%@",dic[@"msg"]];
        if ([status isEqualToString:@"1"]) {
            block(YES,msg,dic);
        }else{
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 专辑和歌手的收藏
+(void)CollectionOfAlbumsSingers:(NSString *)type resource:(NSString *)resource :(HTTPSData)block
{
    NSDictionary * diction = [[NSDictionary alloc]initWithObjectsAndKeys:type,@"type",resource,@"resource", nil];
    NSString * url = [NSString stringWithFormat:@"%@/Music/collect_add",http_zongSJUrl];
    [kNetworkTool POSTFuYinWithUrlString:url input:diction success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        NSString * msg = [NSString stringWithFormat:@"%@",dic[@"msg"]];
        if ([status isEqualToString:@"1"]) {
            block(YES,msg,dic);
        }else{
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark -  歌曲收藏删除
+(void)songCollectionDeleted:(NSString *)ID :(HTTPSData)block
{
    NSDictionary * diction = [[NSDictionary alloc]initWithObjectsAndKeys:ID,@"id", nil];
    NSString * url = [NSString stringWithFormat:@"%@/Music/collect_del",http_zongSJUrl];
    [kNetworkTool POSTFuYinWithUrlString:url input:diction success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        NSString * msg = [NSString stringWithFormat:@"%@",dic[@"msg"]];
        if ([status isEqualToString:@"1"]) {
            block(YES,msg,dic);
        }else{
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 音频点赞
+(void)audioPointPraise:(NSString *)type :(NSString *)resource :(HTTPSData)block
{
    NSDictionary * diction = [[NSDictionary alloc]initWithObjectsAndKeys:type,@"type",resource,@"resource",nil];
    NSString * url = [NSString stringWithFormat:@"%@/Music/zan",http_zongSJUrl];
    [kNetworkTool POSTFuYinWithUrlString:url input:diction success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        NSString * msg = [NSString stringWithFormat:@"%@",dic[@"msg"]];
        if ([status isEqualToString:@"1"]) {
            block(YES,msg,dic);
        }else{
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 检查音频是否点赞  专辑1  歌手2  歌曲3
+(void)checkIfTheAudioIsThumbUp :(NSString *)type :(NSString *)resource :(HTTPSData)block
{
    NSDictionary * diction = [[NSDictionary alloc]initWithObjectsAndKeys:type,@"type",resource,@"resource",nil];
    NSString * url = [NSString stringWithFormat:@"%@/Music/zan_ck",http_zongSJUrl];
    [kNetworkTool POSTFuYinWithUrlString:url input:diction success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        NSString * msg = [NSString stringWithFormat:@"%@",dic[@"msg"]];
        if ([status isEqualToString:@"1"]) {
            block(YES,msg,dic);
        }else{
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 检查歌曲或者专辑是否收藏  专辑1  歌手2  歌曲3
+(void)checkTheCollectionOfSongsOrAlbums :(NSString *)type :(NSString *)resource :(HTTPSData)block
{
    NSDictionary * diction = [[NSDictionary alloc]initWithObjectsAndKeys:type,@"type",resource,@"resource",nil];
    NSString * url = [NSString stringWithFormat:@"%@/Music/collect_ck",http_zongSJUrl];
    [kNetworkTool POSTFuYinWithUrlString:url input:diction success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        NSString * msg = [NSString stringWithFormat:@"%@",dic[@"msg"]];
        if ([status isEqualToString:@"1"]) {
            block(YES,msg,dic);
        }else{
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 歌曲点击量更新
+(void)songClickOnTheDataUpdates:(NSString *)id_id :(HTTPSData)block
{
    NSDictionary * diction = [[NSDictionary alloc]initWithObjectsAndKeys:id_id,@"id", nil];
    NSString * url = [NSString stringWithFormat:@"%@/Music/click",http_zongSJUrl];
    [kNetworkTool POSTFuYinWithUrlString:url input:diction success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        NSString * msg = [NSString stringWithFormat:@"%@",dic[@"msg"]];
        if ([status isEqualToString:@"1"]) {
            block(YES,msg,dic);
        }else{
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 视频音频浏览量    增加视频，音频，文章浏览量
+(void)AddVideoAudioTraffic:(NSString *)id_id :(HTTPSData)block
{
    NSDictionary * diction = [[NSDictionary alloc]initWithObjectsAndKeys:@"browse_num",@"interface",id_id,@"id",  nil];
    NSString * url = [NSString stringWithFormat:@"%@",http_shengjing];
    [kNetworkTool POSTFuYinWithUrlString:url input:diction success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        if ([status isEqualToString:@"1"]) {
            block(YES,@"ok",dic);
        }else{
            NSString * msg = [NSString stringWithFormat:@"%@",dic[@"msg"]];
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 更新视频的播放次数
+(void)UpdateVideoPlaybackTimes:(NSString *)ID_ID :(HTTPSData)block
{
    NSDictionary * diction = [[NSDictionary alloc]initWithObjectsAndKeys:ID_ID,@"id", nil];
    NSString * url = [NSString stringWithFormat:@"%@/Movie/mv_num",http_zongSJUrl];
    [kNetworkTool POSTFuYinWithUrlString:url input:diction success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        NSString * msg = [NSString stringWithFormat:@"%@",dic[@"msg"]];
        if ([status isEqualToString:@"1"]) {
            block(YES,msg,dic);
        }else{
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 视频的点赞 0是点赞   1是检查有哪些点赞的
+(void)videoIsThumbUp:(NSString *)ID_ID :(NSString *)ck :(HTTPSData)block
{
    NSDictionary * diction = [[NSDictionary alloc]initWithObjectsAndKeys:ID_ID,@"id",ck,@"ck", nil];
    NSString * url = [NSString stringWithFormat:@"%@/Movie/zan",http_zongSJUrl];
    [kNetworkTool POSTFuYinWithUrlString:url input:diction success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        NSString * msg = [NSString stringWithFormat:@"%@",dic[@"msg"]];
        if ([status isEqualToString:@"1"]) {
            block(YES,msg,dic);
        }else{
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 关注他人 ck 1检测是否关注 不执行关注操作  0不检测默认  mode1已关注执行取消 0不取消 默认
+(void)payAttentionToOthers:(NSString *)tuid Ck:(NSString *)Ck mode:(NSString *)mode :(HTTPSData)block
{
    NSDictionary * diction = [[NSDictionary alloc]initWithObjectsAndKeys:tuid,@"tuid",Ck,@"ck",mode,@"mode", nil];
    NSString * url = [NSString stringWithFormat:@"%@/user/follow",http_toutiao];
    [kNetworkTool POSTFuYinWithUrlString:url input:diction success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        NSString * msg = [NSString stringWithFormat:@"%@",dic[@"msg"]];
        if ([status isEqualToString:@"1"]) {
            block(YES,msg,dic);
        }else{
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 发布动态
+(void)releaseTheDynamic:(NSString *)kind type:(NSString *)type resource:(NSString *)resource title:(NSString *)title content:(NSString *)content theme:(NSString *)theme images:(NSString *)images :(HTTPSData)block
{
    NSDictionary * diction = [[NSDictionary alloc]initWithObjectsAndKeys:kind,@"kind",type,@"type",resource,@"resource",title,@"title",content,@"content",theme,@"theme",images,@"images", nil];
    NSString * url = [NSString stringWithFormat:@"%@/dynamic/add",http_zongSJUrl];
    [kNetworkTool POSTFuYinWithUrlString:url input:diction success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        NSString * msg = [NSString stringWithFormat:@"%@",dic[@"msg"]];
        if ([status isEqualToString:@"1"]) {
            block(YES,msg,dic);
        }else{
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 动态点赞
+(void)theDynamicPointOfPraise:(NSString *)tid type:(NSString *)type ck:(NSString *)ck mode:(NSString *)mode :(HTTPSData)block
{
    NSDictionary * diction = [[NSDictionary alloc]initWithObjectsAndKeys:tid,@"tid",type,@"type",ck,@"ck",mode,@"mode", nil];
    NSString * url = [NSString stringWithFormat:@"%@/dynamic/admire",http_zongSJUrl];
    [kNetworkTool POSTFuYinWithUrlString:url input:diction success:^(NSDictionary * diction) {
        NSString * status = [NSString stringWithFormat:@"%@",diction[@"status"]];
        NSString * msg = [NSString stringWithFormat:@"%@",diction[@"msg"]];
        if ([status isEqualToString:@"1"]) {
            block(YES,msg,diction);
        }else{
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 用户对动态进行评价
+(void)usersCommentOnResources:(NSString *)tid :(NSString *)comment_id content:(NSString *)content :(HTTPSData)block
{
    NSDictionary * diction = [[NSDictionary alloc]initWithObjectsAndKeys:tid,@"tid",comment_id,@"comment_id",content,@"content", nil];
    NSString * url = [NSString stringWithFormat:@"%@/dynamic/comment",http_zongSJUrl];
    [kNetworkTool POSTFuYinWithUrlString:url input:diction success:^(NSDictionary * diction) {
        NSString * status = [NSString stringWithFormat:@"%@",diction[@"status"]];
        NSString * msg = [NSString stringWithFormat:@"%@",diction[@"msg"]];
        if ([status isEqualToString:@"1"]) {
            block(YES,msg,diction);
        }else{
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 上传图片至服务器
+(void)toUploadPictures:(NSString *)url imageFile:(UIImage *)imageFile filePath:(NSString *)filePath :(HTTPSData)block
{
    NSData *imageData = UIImageJPEGRepresentation(imageFile, 0.5);
    NSString * urlStr= [NSString stringWithFormat:@"%@%@",http_zongSJUrl,url];
    NSDictionary * dic = [[NSDictionary alloc]init];
    [[NetworkTool sharedInstance] uploadFuYinWithUrlString:urlStr input:dic dataImage:imageData filePath:filePath success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        if ([status isEqualToString:@"1"]) {
            block(YES,@"ok",dic);
        }
        else{
            NSString * message = [NSString stringWithFormat:@"%@",dic[@"message"]];
            block(NO,message,nil);
        }
    } failure:^(NSError * err) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 提交资质证明
+(void)submitQualificationCertificate:(NSString *)name contact:(NSString *)contact address:(NSString *)address mechanism:(NSString *)mechanism identity:(NSString *)identity card:(NSString *)card images:(NSString *)images introduce:(NSString *)introduce :(HTTPSData)block
{
    NSDictionary * diction = [[NSDictionary alloc]initWithObjectsAndKeys:name,@"name",contact,@"contact",address,@"address",mechanism,@"mechanism",identity,@"identity",card,@"card",images,@"images",introduce,@"introduce", nil];
    NSString * url = [NSString stringWithFormat:@"%@/identity/apply",http_zongSJUrl];
    [kNetworkTool POSTFuYinWithUrlString:url input:diction success:^(NSDictionary * diction) {
        NSString * status = [NSString stringWithFormat:@"%@",diction[@"status"]];
        NSString * msg = [NSString stringWithFormat:@"%@",diction[@"msg"]];
        if ([status isEqualToString:@"1"]) {
            block(YES,msg,diction);
        }else{
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 举报
+(void)contentOfTheReport:(NSString *)tid type:(NSString *)type kind:(NSString *)kind comment_id:(NSString *)comment_id content:(NSString *)content :(HTTPSData)block
{
    NSDictionary * dic = [[NSDictionary alloc]initWithObjectsAndKeys:tid,@"tid",type,@"type",kind,@"kind",comment_id,@"comment_id",content,@"content", nil];
    NSString * url = [NSString stringWithFormat:@"%@/dynamic/report",http_zongSJUrl];
    [kNetworkTool POSTFuYinWithUrlString:url input:dic success:^(NSDictionary * diction) {
        NSString * status = [NSString stringWithFormat:@"%@",diction[@"status"]];
        NSString * msg = [NSString stringWithFormat:@"%@",diction[@"msg"]];
        if ([status isEqualToString:@"1"]) {
            block(YES,msg,diction);
        }else{
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 删除通知
+(void)deleteTheNotice:(NSString *)ID_ID :(HTTPSData)block
{
    NSDictionary * dic = [[NSDictionary alloc]initWithObjectsAndKeys:ID_ID,@"id",nil];
    NSString * url = [NSString stringWithFormat:@"%@/msg/delete",http_zongSJUrl];
    [kNetworkTool POSTFuYinWithUrlString:url input:dic success:^(NSDictionary * diction) {
        NSString * status = [NSString stringWithFormat:@"%@",diction[@"status"]];
        NSString * msg = [NSString stringWithFormat:@"%@",diction[@"msg"]];
        if ([status isEqualToString:@"1"]) {
            block(YES,msg,diction);
        }else{
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 获取消息没读的统计
+(void)getsStatisticsForMessagesNotRead:(HTTPSData)block
{
    NSDictionary * dic = [[NSDictionary alloc]init];
    NSString * url = [NSString stringWithFormat:@"%@/msg/get_count",http_zongSJUrl];
    [kNetworkTool POSTFuYinWithUrlString:url input:dic success:^(NSDictionary * diction) {
        NSString * status = [NSString stringWithFormat:@"%@",diction[@"status"]];
        NSString * msg = [NSString stringWithFormat:@"%@",diction[@"msg"]];
        if ([status isEqualToString:@"1"]) {
            block(YES,msg,diction);
        }else{
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 阅读某条信息
+(void)readTheInformationInTheNotice:(NSString*)kind strID:(NSString *)strID :(HTTPSData)block
{
    NSDictionary * dic = [[NSDictionary alloc]initWithObjectsAndKeys:kind,@"kind",strID,@"id", nil];
    NSString * url = [NSString stringWithFormat:@"%@/msg/read",http_zongSJUrl];
    [kNetworkTool POSTFuYinWithUrlString:url input:dic success:^(NSDictionary * diction) {
        NSString * status = [NSString stringWithFormat:@"%@",diction[@"status"]];
        NSString * msg = [NSString stringWithFormat:@"%@",diction[@"msg"]];
        if ([status isEqualToString:@"1"]) {
            block(YES,msg,diction);
        }else{
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 歌词的获取
+(void)AcquisitionLyrics :(NSString *)id_id :(HTTPSData)block
{
    NSDictionary * diction = [[NSDictionary alloc]initWithObjectsAndKeys:id_id,@"id", nil];
    NSString * url = [NSString stringWithFormat:@"%@/Music/get_lrc",http_zongSJUrl];
    [kNetworkTool POSTFuYinWithUrlString:url input:diction success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        NSString * msg = [NSString stringWithFormat:@"%@",dic[@"msg"]];
        if ([status isEqualToString:@"1"]) {
            block(YES,msg,dic);
        }else{
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - MV歌词的获取
+(void)initMVAcquisitionLyrics:(NSString *)id_id :(HTTPSData)block
{
    NSDictionary * diction = [[NSDictionary alloc]initWithObjectsAndKeys:id_id,@"id", nil];
    NSString * url = [NSString stringWithFormat:@"%@/mv/get_detail",http_zongSJUrl];
    [kNetworkTool POSTFuYinWithUrlString:url input:diction success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        NSString * msg = [NSString stringWithFormat:@"%@",dic[@"msg"]];
        if ([status isEqualToString:@"1"]) {
            block(YES,msg,dic);
        }else{
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - mv点击量添加 不用了  有歌词+1了
+(void)initWithAddMVClicks:(NSString *)type id_id:(NSString *)id_id :(HTTPSData)block
{
    NSDictionary * diction = [[NSDictionary alloc]initWithObjectsAndKeys:type,@"type",id_id,@"id", nil];
    NSString * url = [NSString stringWithFormat:@"%@/mv/set_inc",http_zongSJUrl];
    [kNetworkTool POSTFuYinWithUrlString:url input:diction success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        NSString * msg = [NSString stringWithFormat:@"%@",dic[@"msg"]];
        if ([status isEqualToString:@"1"]) {
            block(YES,msg,dic);
        }else{
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
@end
